.pay-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f7fa;
}
.pay-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.pay-header .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}
.pay-header .back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.pay-header .back-btn .van-icon {
  font-size: 16px;
}
.pay-header .title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-right: 70px;
}
.pay-content {
  box-sizing: border-box;
  flex: 1;
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1d3557;
  display: flex;
  align-items: center;
}
.section-title:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #4361ee;
  border-radius: 2px;
  margin-right: 8px;
}
.order-summary {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.order-summary .order-info {
  margin-bottom: 12px;
}
.order-summary .info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}
.order-summary .info-row .label {
  color: #666;
}
.order-summary .info-row .value {
  font-weight: 500;
}
.order-summary .total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #eee;
  font-size: 18px;
  font-weight: 600;
}
.order-summary .total-row .label {
  color: #333;
}
.order-summary .total-row .value {
  color: #ee0a24;
}
.payment-methods {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.payment-method {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #eee;
}
.payment-method:last-child {
  margin-bottom: 0;
}
.payment-method:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.payment-method.selected {
  border-color: #4361ee;
  background-color: rgba(67, 97, 238, 0.05);
}
.payment-method .method-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  font-size: 20px;
}
.payment-method .method-info {
  flex: 1;
}
.payment-method .method-info .method-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: #1d3557;
}
.payment-method .method-info .method-desc {
  font-size: 12px;
  color: #888;
}
.payment-method .method-radio {
  margin-left: 10px;
}
.usdt-details {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}
.usdt-details .payment-instructions {
  background-color: #f8f9ff;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}
.usdt-details .payment-instructions p {
  margin-bottom: 8px;
}
.usdt-details .payment-instructions p:last-child {
  margin-bottom: 0;
}
.usdt-details .payment-instructions strong {
  color: #ee0a24;
  font-weight: 600;
}
.usdt-details .qr-container {
  text-align: center;
  margin-bottom: 20px;
}
.usdt-details .qr-container p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}
.usdt-details .qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background-color: #f9f9f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eee;
}
.usdt-details .qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.usdt-details .address-container .address-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}
.usdt-details .address-container .address-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9ff;
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  word-break: break-all;
}
.usdt-details .address-container .address-value .copy-btn {
  flex-shrink: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.timer {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #ee0a24;
  margin-top: 20px;
  padding: 10px;
  background: #fff6f7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pay-actions {
  padding: 0 16px;
  margin-bottom: 30px;
}
.pay-actions .pay-button {
  font-weight: 600;
  font-size: 16px;
  height: 50px;
}
.pay-actions .pay-button i {
  margin-right: 8px;
  font-size: 18px;
}
.success-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  text-align: center;
}
.success-view .success-icon {
  margin-bottom: 25px;
  animation: bounce 0.8s ease;
}
.success-view .success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1d3557;
}
.success-view .success-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}
.success-view .home-btn {
  width: 200px;
  font-weight: 500;
  height: 50px;
  font-size: 16px;
}
.pay-footer {
  text-align: center;
  padding: 20px 16px;
  font-size: 12px;
  color: #999;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.pay-footer p:first-child {
  margin-bottom: 5px;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-15px);
  }
  60% {
    transform: translateY(-7px);
  }
}
@media (min-width: 768px) {
  .pay-container {
    background: linear-gradient(135deg, #f5f7fa, #e6e9ff);
  }
  .pay-content {
    padding: 30px;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background: #fff;
  }
  .pay-header {
    border-radius: 0 0 20px 20px;
  }
  .success-view {
    background: #fff;
    border-radius: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}
@media (max-width: 480px) {
  .qr-code {
    width: 160px !important;
    height: 160px !important;
  }
  .payment-method {
    padding: 10px;
  }
  .payment-method .method-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .address-value {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .address-value .copy-btn {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center;
  }
}
